from pypbc import *

class Node:
    def __init__(self):
        self.gate = []
        self.children = []
        self.attr = None
        self.secretShare = None
        self.valid

    def Node(self,att=None,gate=[],children=[]):
        self.attr = att
        self.gate=gate
        self.children = children

    def isLeaf(self):
        if(len(self.children)==0):
            return False
        else:
            return True


